<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!doctype html>
<html class="no-js">
<head>
    <%@ include file="./../common/meta.jsp" %>
    <link rel="stylesheet" href="../../css/address.css">
</head>
<body>
<header data-am-sticky class="am-header am-header-default am-no-layout">
    <div class="am-header-left am-header-nav">
        <a href="./settings.jsp" class="">
            <i class="am-header-icon am-icon-chevron-left"></i>
        </a>
    </div>
    <h1 class="am-header-title">龙凤币</h1>
</header>

<div data-am-widget="tabs"
     class="am-tabs am-tabs-default">
    <ul class="am-tabs-nav am-cf">
        <li class="am-active"><a href="[data-tab-panel-0]">龙凤币金额</a></li>
        <li class=""><a href="[data-tab-panel-1]">平台返利</a></li>
        <li class=""><a href="[data-tab-panel-2]">商家红包</a></li>
    </ul>


    <div class="am-tabs-bd">
        <div data-tab-panel-0 class="am-tab-panel am-active">


            <div class="am-list-news-bd">
                <ul class="am-list" id="lfbje">
                </ul>
            </div>


        </div>
        <div data-tab-panel-1 class="am-tab-panel ">

            <div class="am-list-news-bd">
                <ul class="am-list">

                </ul>
            </div>

        </div>
        <div data-tab-panel-2 class="am-tab-panel ">

            <div class="am-list-news-bd">
                <ul class="am-list">
                </ul>
            </div>

        </div>
    </div>
</div>

<%@ include file="./../common/footerNav.jsp" %>
<%@ include file="./../common/footer.jsp" %>
<script src="../../js/settings/lfb.js"></script>


<script id="lfb-template" type="text/x-handlebars-template">


    {{#each this}}
    <li class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left">
        <div class=" am-u-sm-8 am-list-main">
            <div class="am-list-item-text">{{record}}
            </div>
            <div class="am-list-item-text">时间:{{createTime}}</div>

        </div>
    </li>
    {{/each}}
</script>


<script>
    $(function () {
        var url = "/h5/lfb-record";
        var user = JSON.parse(localStorage.getItem("user"));
        $.post(url, {
            userId: user.id
        }, function (result) {
            var source = $('#lfb-template').html();
            var template = Handlebars.compile(source);
            var html = template(result);
            $("#lfbje").append(html);

        })


    })


</script>


</body>
</html>